package fun.linze.order.properties;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

///ConfigurationProperties需为组件才能生效
@Component
///配置绑定在Nacos上，无需RefreshScope即可完成自动刷新
@ConfigurationProperties(prefix = "order")


@Data
public class OrderProperties {
    String timeout;

    ///短横线写法映射为java bean中的驼峰写法
    String autoConfirm;
}
